package Test;

import MyArrayList.MyArrayList;

public class MyArrayListTest {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.display();
        System.out.println("==========================");
        myArrayList.add(1,99);
        myArrayList.display();
        System.out.println(myArrayList.contains(99));
        System.out.println(myArrayList.indexOf(99));
        System.out.println(myArrayList.get(1));
        System.out.println("=========================");
        myArrayList.set(1,890);
        myArrayList.display();
        System.out.println("=========================");
        myArrayList.remove(1);
        myArrayList.remove(3);
        myArrayList.display(); 
        System.out.println("=========================");
    }
}
